package com.chaodev.base.service;

import com.chaodev.base.dto.TrainingAddDto;
import com.chaodev.base.dto.TrainingPageDto;
import com.chaodev.base.model.Result;

import javax.servlet.http.HttpServletRequest;

public interface TrainingService {
    /**
     * 获取培训课程分页列表
     * @param dto
     * @param request
     * @return
     */
    Result page(TrainingPageDto dto, HttpServletRequest request);

    /**
     * 获取培训课程列表
     * @param dto
     * @param request
     * @return
     */
    Result list(TrainingPageDto dto, HttpServletRequest request);

    /**
     * 根据ID获得培训课程对象
     * @param id
     * @param request
     * @return
     */
    Result findDataById(Integer id,HttpServletRequest request);

    /**
     * 保存培训课程信息
     * @param dto
     * @param request
     * @return
     */
    Result saveData(TrainingAddDto dto, HttpServletRequest request);

    /**
     * 删除培训课程对象
     * @param id
     * @param request
     * @return
     */
    Result deleteDataById(Integer id, HttpServletRequest request);

}
